
#import "PUMineListCell.h"

@implementation PUMineListCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self initViews];
    }
    return  self;
}
-(void)initViews{

    CGFloat width=_window_width;
    self.bgView=[[UIView alloc]init];
    self.bgView.frame=CGRectMake(12*KWidthScale, 6*KWidthScale, width-12*KWidthScale*2, 80*KWidthScale);
    self.bgView.backgroundColor=[UIColor whiteColor];
    self.bgView.layer.cornerRadius = 8;
    self.bgView.layer.masksToBounds=YES;
    [self.contentView addSubview:self.bgView];
    
    
    
    self.bgImage=[[UIImageView alloc]init];
    self.bgImage.frame=CGRectMake(0, 0,self.bgView.frame.size.width,self.bgView.frame.size.height);
    self.bgImage.backgroundColor=[UIColor grayColor];
    [self.bgView addSubview:self.bgImage];
    
    
//    self.img=[[UIImageView alloc]init];
//    self.img.frame=CGRectMake(28*KWidthScale, self.bgView.frame.size.height/2-24*KWidthScale/2,24*KWidthScale,24*KWidthScale);
//    [self.bgView addSubview:self.img];
    
    self.titleBtn = [[UIButton alloc] init];
    self.titleBtn.frame=CGRectMake(28*KWidthScale, 0, self.bgView.frame.size.width-self.bgView.frame.size.width*0.034*2, self.bgView.frame.size.height);
    [self.titleBtn setTitle:@"" forState:UIControlStateNormal];
    self.titleBtn.titleLabel.font = [UIFont systemFontOfSize:16];
    [self.titleBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    self.titleBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
    self.titleBtn.userInteractionEnabled=NO;
    [self.bgView addSubview:self.titleBtn];
    
    self.jiantouImage=[[UIImageView alloc]init];
    self.jiantouImage.frame=CGRectMake(self.bgView.frame.size.width-24*KWidthScale-28*KWidthScale, 28*KWidthScale,24*KWidthScale, 24*KWidthScale);
    self.jiantouImage.image=[UIImage imageNamed:@"mine_jiantou"];
    [self.bgView addSubview:self.jiantouImage];
}


@end
